home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / restaurante_1141.swf / scripts / DefineButton2_90 / BUTTONCONDACTION on(release).as
Text File  |  2009-04-16  |  901b  |  36 lines

  1. on(release){
  2.    if(eval("/:Money") < 50)
  3.    {
  4.       _root.gamego.gotoAndStop(3);
  5.       gotoAndStop(3);
  6.    }
  7.    else
  8.    {
  9.       set("/:again",false);
  10.       _root.Sjmap.gamego.gotoAndStop(1);
  11.       var Vars = new LoadVars();
  12.       var ProcURL = "http://proc.joyworld.tv/Save.ashx";
  13.       Vars.proc = "usegamemoney";
  14.       Vars.cmid = "10007";
  15.       Vars.uid = _root.uid;
  16.       Vars.UseGameMoney = 50;
  17.       Vars.sendAndLoad(ProcURL,Vars,"POST");
  18.       trace("Send:\n" + Vars);
  19.       Vars.onLoad = function(success)
  20.       {
  21.          trace("Load:\n" + Vars);
  22.          trace("Vars.RtnVal:\n" + Vars.RtnVal);
  23.          if(success && Number(Vars.RtnVal) == 1)
  24.          {
  25.             _root.Money = Vars.GameMoney;
  26.             trace("∞áÇ∞₧Ñ∞ä▒Ω│╡");
  27.          }
  28.          else
  29.          {
  30.             gotoAndStop(1);
  31.             trace("∞áÇ∞₧Ñ∞ïñφî¿");
  32.          }
  33.       };
  34.    }
  35. }
  36.